import http from "@/utils/http";

/**
 * @description: 根据user对象进行登录
 * @return {*}
 * @param user
 */
export function loginAPI(user){
    return http.post('/user/login',user);
}

/**
 * @description: 获取用户列表
 * @return {*}
 * @param params
 */
export function getUserAPI(params){
    return http.post('/user/getUserList',params);
}

/**
 * 封禁用户
 * @param {object} params IdRequest
 * @param {number} params.id
 * @returns
 */
export function beanUserAPI(params) {
    return http.post(`/user/ban`, params);
}
